import { ref, computed } from "vue";
import { defineStore } from "pinia";

export const useUserInfoStore = defineStore("user", () => {
    const address = ref('');
    const userInfo = ref({})
    const changeAddress = (item) => {
        address.value = item;
    };
    const changeUserInfo = (item) => {
           userInfo.value = item;
    }; 

    return { address, changeAddress, userInfo,changeUserInfo };
});
